#define LG_CORE

#include "lg_draw.h"

static struct {
	LGConfig* config;
	LGDrawBackend* backend;
}ctx = { 0 };


LG_API int
lgInitDrawContext(LGConfig* config, LGDrawBackend* backend) {
	ctx.config = config;
	ctx.backend = backend;
	return 0;
}

LG_API void
lgDrawPoints(LGCanvas* canvas, LGFloat size, LGDraw* draw) {
	ctx.backend->drawPoints(canvas, size, draw);
}

LG_API void
lgDraw(LGCanvas* canvas, LGDraw* draw) {
	ctx.backend->draw(canvas, draw);
}


